package com.example.maze;

public class Vertex {
   //[ ========== Static part ==========
   static int GROUP_NUMBER= 0;
   //] ========== Static part ==========
   
   int posM, posN;
   int grpNum= GROUP_NUMBER++;
   boolean visit= false;
   int distance;              // �P root�����Z��(�X�Ӹ`�I)
   int colorValue;
   
   public Vertex() {}
   public Vertex(int pm, int pn) { posM= pm; posN= pn; }
   
   public void    visit()        { visit= true; }
   public boolean isVisited()    { return visit; }
   
   @Override
   public String toString() {
      return "("+posM+","+posN+")";
   }
}